<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>{{totalPrice}}</h1>
    </div>
</body>
<script src="./node_modules/vue/dist/vue.js"></script>
<script src="./node_modules/vuex/dist/vuex.js"></script>
<script>
    let store = new Vuex.Store({
        state:{
            count:999
        },
        getters:{
            totalPrice:function(state){
                return state.count * 10;
            }
        }
    })
    let vm = new Vue({
        el:"#app",
        computed:Vuex.mapGetters(["totalPrice"]),
        store,
    })
</script>
</html>